/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.notify.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.notify.entity.NotiUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 推送用户DAO接口
 * @author chenbin
 * @version 2018-12-14
 */
@MyBatisDao
public interface NotiUserDao extends CrudDao<NotiUser> {

    List<NotiUser> getUserByAliasOrTag(@Param("tagOrAlias") String tagOrAlias, @Param("pushType") String pushType);

    NotiUser getUserByUsernameAndAppid(@Param("username") String username, @Param("appId") String appId);

    void updatUser(NotiUser notiUser);

}